<!DOCTYPE html>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加用户</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link rel="stylesheet" type="text/css" href="${contextPath}/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="${contextPath}/css/bootstrap-theme.min.css" />
<link href="${contextPath}/css/jquery-ui.min.css" rel="stylesheet">
<link href="${contextPath}/css/jquery-ui.theme.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="${contextPath}/css/public.css">
<script type="text/javascript" src="${contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${contextPath}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${contextPath}/js/common.js"></script>
<script type="text/javascript" src="${contextPath}/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="${contextPath}/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="${contextPath}/js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="${contextPath}/js/jquery.ui.datepicker-ch.js"></script>
<body>
	<div class="container">
	

		<div class="panel panel-default">
			<div class="panel-heading">
				添加<span id="taskMarkTimeMonthTotle" class="pull-right text-success">管理员：${sessionScope.username} | <a href="${contextPath}/quit">退出</a> </span>
			</div>
			<div class="panel-body">
				<c:if test="${message != null}">
					<div class="alert alert-danger alert-dismissable">
						<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
						${message}
					</div>
				</c:if>
				<form action="${contextPath}/security/addMarriage" method="post" id="addMarriage" name="addMarriage" role="form" class="form-horizontal">
					<div class="form-group">
						<label for="marriageId" class="col-sm-2 control-label">证字号：</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="marriageId" id="marriageId" placeholder="证字号" autocomplete="off"> <span class="help-block"></span>
						</div>
						<label for="marriageDate" class="col-sm-2 control-label">日期：</label>
						<div class="col-sm-10">
							<input class="form-control" id=marriageDate name="marriageDate" type="text" placeholder="日期" autocomplete="off"><span class="help-block"></span>
						</div>
					</div>
					<div class="form-group">
						<label for="manName" class="col-sm-2 control-label">男方姓名：</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="manName" id="manName" placeholder="男方姓名" autocomplete="off"> <span class="help-block"></span>
						</div>
						<label for="manId" class="col-sm-2 control-label">男方身份证号：</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="manId" id="manId" placeholder="男方身份证号（必填）" autocomplete="off"> <span class="help-block"></span>
						</div>
					</div>

					<div class="form-group">
						<label for="womanName" class="col-sm-2 control-label">女方姓名：</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="womanName" id="womanName" placeholder="女方姓名" autocomplete="off"> <span class="help-block"></span>
						</div>
						<label for="womanId" class="col-sm-2 control-label">女方身份证号：</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="womanId" id="womanId" placeholder="女方身份证号" autocomplete="off"> <span class="help-block"></span>
						</div>
					</div>
					<div class="form-group">
						<label for=marriageStatus class="col-sm-2 control-label">登记业务：</label>
						<div class="col-sm-10">
							<select class="form-control" id="marriageStatus" name="marriageStatus" autocomplete="off">
								<option value="结婚" selected="selected" >结婚</option>
								<option value="离婚">离婚</option>
								<option value="补领结婚">补领结婚</option>
								<option value="补领离婚">补领离婚</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="button" class="btn btn-success" id="add">添加</button>
							<button type="button" class="btn btn-primary" id="close">关闭</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#marriageDate").datepicker();
			$.datepicker.regional["ch"];
			var now = new Date();
			var tt = now.getFullYear()+"-"+((now.getMonth()+1)<10?"0":"")+(now.getMonth()+1)+"-"+(now.getDate()<10?"0":"")+now.getDate();
			$("#marriageDate").val(tt);
			$("#add").click(function() {
				addMarriage.submit();
			});
			$("#close").click(function() {
				window.close();
			});
		});
	</script>
</body>
</html>

